//
//  EnterViewController.m
//  A段项目
//
//  Created by ～whc on 15-6-20.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "EnterViewController.h"

@interface EnterViewController ()

@end

@implementation EnterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view setBackgroundColor:[UIColor clearColor]];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationItem.title = @"流媒体资讯";
    [self create];
}
#warning 设置自定义导航栏左侧按钮
- (void)create
{
    self.enterView = [[EnterView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64)];
    self.enterView.enterDelegate = self;
    [self.enterView setBackgroundColor:[UIColor whiteColor]];
    [self.view addSubview:self.enterView];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"pic_web_back.png"] style:UIBarButtonItemStyleDone target:self action:@selector(barButtonItemAction)];
    
}

- (void)present
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)barButtonItemAction
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
